<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      template="Private/templates/TemplateLogin.xhtml"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <ui:define name="head">
        <title>Login</title>
    </ui:define>
    <ui:define name="body">
        <h:form id="FormLogin">
            <p:messages autoUpdate="true"/>
            <p:panelGrid id="panel" columns="2">
                
                <f:facet name="header">#{msg['login.title']}</f:facet>
                
                <p:outputLabel for="txtUser" value="#{msg['label.user']}"></p:outputLabel>
                <p:inputText id="txtUser" value="#{LoginController.user}" required="true"/>
                <p:outputLabel for="txtPassword" value="#{msg['label.password']}"></p:outputLabel>
                <p:password id="txtPassword" value="#{LoginController.password}" required="true"/>
                
                
                
                <f:facet name="footer">
                    <div align="center">
                        <p:commandButton value="#{msg['button.login']}" action="#{LoginController.Login()}" process="@form" update="@form"></p:commandButton>
                    </div>
                </f:facet>
            </p:panelGrid>
        </h:form>
    </ui:define>
</ui:composition>

